/**
 * @name Get Function Body
 * @kind problem
 * @problem.severity info
 * @id cpp/get-function-body
 * @description 获取函数的完整实现代码（包括函数体）
 */

import cpp

from Function f
where f.getQualifiedName() = "${qualifiedName}"
select 
    f.getName() as name,
    f.getQualifiedName() as qualifiedName,
    f.getType() as returnType,
    f.getParameters() as parameters,
    f.getFile().getRelativePath() as filePath,
    f.getLocation().getStartLine() as startLine,
    f.getLocation().getEndLine() as endLine,
    f.getLocation().getStartColumn() as startColumn,
    f.getLocation().getEndColumn() as endColumn,
    f.getEnclosingClass() as enclosingClass,
    f.getEnclosingNamespace() as enclosingNamespace,
    f.getBody().toString() as bodyCode

